<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function F(name){
			this.name=name;
		}
		F.name="小红";   //给函数对象添加了一个name属性,值是"小红"
		F.prototype.name="小明"; //给js类F添加了一个原型属性name
		var obj=new F();
		alert(obj.name)
	</script>
	
</html>
